package main

import "fmt"

func main() {

	var nums [5]int
	fmt.Println(nums)
	fmt.Println(len(nums))
	fmt.Println(nums[0])

	num2 := [5]int{1, 2, 3}
	fmt.Println(num2)
	fmt.Println(len(nums))

	num3 := [...]int{1, 2, 3, 4, 5}
	fmt.Println(num3)
	fmt.Println(len(num3))

	num4 := new([10]int)
	fmt.Println(num4)
	fmt.Println(len(num4))

	sli := &num4
	fmt.Println(sli)

	arr := [6]int{1, 3, 4, 5, 6}
	fmt.Println(arr)

	slice2 := []int{1, 2, 3, 4, 5}
	fmt.Println(slice2)
	clear(slice2)
	fmt.Println(slice2)
}
